package org.apache.doris.demo.spring.controller;

import org.apache.doris.demo.spring.model.LabelTagBitmap;
import org.apache.doris.demo.spring.service.LabelTagBitmapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

@Controller
public class LabelTagBitmapController {
    @Autowired
    private LabelTagBitmapService labelTagBitmapService;

    @GetMapping("/labelTagBitmap")
    public String list(Model model) {
        model.addAttribute("labelTagBitmaps", labelTagBitmapService.list());
        return "labelTagBitmap/list";
    }

}